package com.neuedu.advance.instance.of;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述  多态
 * @data 2024/10/1713:48
 */
public class C  extends  B{

    public static void main(String[] args) {
        C c1 = new C();
        B b1 = new B();
        System.out.println("new C()   instanceof  C : "+ (c1   instanceof  C));
        System.out.println("new B()   instanceof  B : "+ (b1   instanceof  B));
        System.out.println("c1   instanceof  B : "+ (c1   instanceof  B));   //true
        System.out.println("c1   instanceof  A : "+ (c1   instanceof A ));   //true
        System.out.println("b1   instanceof  C: "+ (b1   instanceof  C));  //false

    }
}
